package net.bithappens.hnqe.query;

import java.net.URI;

public class Node extends RelationMember implements ITypeElement {

	private String typeId;
	
	public Node(String id, URI uri, String typeId) throws InvalidIdException {
		super(id, uri);
		this.typeId = typeId;
	}
	
	public AtomAttribute getNodeTypeAttribute(){
		return new AtomAttribute(this, "@typeId");
	}
	
	public AtomAttribute getProperty(String name) {
		return new AtomAttribute(this, name);
	}

	@Override
	public String toString() {
		return "[Node| id="+getId()+" uri="+getUri()+" typeId=" + typeId + "]";
	}

	@Override
	public String getTypeId() {
		return typeId;
	}
	
}
